package com.solution.wx.core.constants;

public class WechatConstants {
	/**
	 * 通过网页授权获取的用户信息KEY 
	 */
	public static final String SNS_USERINFO_KEY = "SNS_USERINFO";
	/**
	 * 跳转到网页授权页面之前的源页面地址 
	 */
	public static final String SRC_PAGE_URL_KEY = "srcPageUrl";
	/**
	 * jsapi_ticket
	 */
	public static final String JSAPI_TICKET_CACHE_KEY = "jsapi_ticket";
	/**
	 * access_token
	 */
	public static final String ACCESS_TOKEN_CACHE_KEY = "access_token";
	
	/**
	 * 消息类型值 
	 */
	public static enum MsgTypeValueEnum {
		;
		/**
		 * 文本 
		 */
		public static final String TEXT = "1";
		/**
		 * 图片 
		 */
		public static final String IMAGE = "2";
		/**
		 * 图文 
		 */
		public static final String ARTICLE = "3";
	}
	
	/**
	 * 消息类型值 
	 */
	public static enum MsgTypeEnum {
		;
		/**
		 * 文本 
		 */
		public static final String TEXT = "text";
		/**
		 * 图片 
		 */
		public static final String IMAGE = "image";
		/**
		 * 图文 
		 */
		public static final String ARTICLE = "mpnews";
	}
	
	/**
	 * 关键字匹配规则
	 */
	public static enum KEYWORD_MATCH_RULE {
		;
		/**
		 * 完全匹配 
		 */
		public static final String PERFECT = "1";
		/**
		 * 包含匹配
		 */
		public static final String CONTAIN = "2";
	}
	
	/**
	 * 接收事件类型
	 */
	public static enum RECEIVE_EVENT_TYPE {
		;
		/**
		 * 订阅 
		 */
		public static final String SUBSCRIBE = "subscribe";
		/**
		 * 取消订阅
		 */
		public static final String UNSUBSCRIBE = "unsubscribe";
	}
}
